feat(governance): add agent intent governance (ADR 0014)#26
Conversation
Selectively adopts vocabulary and discipline from 'The Architecture of Intent' by Marcel Aldecoa to close three structural gaps: - Framework agents had no explicit behavioral envelope; coordinator agents now declare ## Behavioral Constraints (rules tools cannot enforce) and ## Composition (cross-component invariants). - Consumer specs describing AI capabilities had no canonical fragment for operational cost commitments; the feature template now carries a gated ## AI Cost Posture block (model tier, latency budget, prompt stability, per-call cost ceiling, cost-incident escalation), opted into via 'Describes AI capability: yes' in the Executive Summary. - The failure-diagnosis surface had no taxonomy mapping a failure to the upstream artifact that owns the fix; debugging-recovery now ships a three-category upstream-artifact principle (failure (spec), failure (validation), failure (agent)). Spec evolution log added to feature and migration spec templates with the three failure trigger values. Docs site gains a new concept page (AI Capability Specs), two new sections in Spec Amendment, and five glossary entries. ADR 0014 records the decision, options considered, and the AoI constructs deliberately not adopted (custom frontmatter scalars, Reversibility tier, Pattern A/B/C/D/E taxonomy, seven-category failure taxonomy, standalone authoring handbook, signal metrics, phase rename). AoI attribution added to ACKNOWLEDGMENTS under Articles and Blog Posts. CHANGELOG entry filed under [Unreleased]; manifest versions unchanged (release bump deferred to release commit). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
PR #26 Review — AoI Selective Adoption into DevSquad CopilotReviewer: Marcel Aldecoa (Author, The Architecture of Intent) SummaryThis PR selectively adopts three constructs from The Architecture of Intent (AoI) to close structural gaps in DevSquad Copilot's agent instructions, spec templates, and debugging-recovery surface. An ADR (0014) documents both what was adopted and what was deliberately rejected. Verdict: ✅ APPROVEThe adoption is disciplined, structurally sound, and honest about scope. The three additions solve real gaps without over-engineering the framework. What Was Adopted1. Behavioral Constraints + Composition Declaration (Agent Instructions)
2. AI Cost Posture (Feature Spec Template)
3. Three-Category Failure Taxonomy (Debugging-Recovery)
4. Spec Evolution Log (Templates)
5. Supporting Changes
What Was Deliberately Not Adopted (ADR 0014)
Assessment: Every rejection is well-reasoned. The PR demonstrates the AoI Adoption Playbook's first principle: tight-focus — adopt what solves your acute problem, leave the rest. Conductor Agent RefactoringBeyond the AoI adoptions, the PR cleans up the conductor agent:
This maps cleanly to AoI's Orchestrator archetype: coordinates, delegates, sequences; does not generate output that belongs to a sub-agent's scope. Suggestions (Non-Blocking)1. Consider linking failure categories to the evolution logThe three failure triggers ( 2. Cost Posture: consider naming the downstream metricAoI's Cost Posture sub-block explicitly names cost-per-correct-outcome as the downstream metric the upstream commitment serves. If DevSquad has (or plans) a cost efficiency metric, naming it in the template text would close the spec↔measurement loop. 3. Future consideration: Cat 7 awarenessIf DevSquad ever gains computer-use or browser-use agent capabilities, the three-category taxonomy will need a fourth bucket (perceptual failure). The ADR could note this as an explicit future-trigger for re-evaluation. Final Assessment
This is how selective framework adoption should look: identify the structural gaps, adopt the constructs that close them, document what you evaluated and rejected, and attribute the source. Well done. |
This PR introduces additional engineering discipline inspired by The Architecture of Intent to close three structural gaps:
Behavioral Constraints(rules tools cannot enforce) andComposition(cross-component invariants).AI Cost Postureblock (model tier, latency budget, prompt stability, per-call cost ceiling, cost-incident escalation), opted into viaDescribes AI capability: yesmetadata in the Executive Summary.debugging-recoveryskill had no taxonomy mapping a failure to the upstream artifact that owns the fix. Now it ships a three-category upstream-artifact principle -failure (spec),failure (validation),failure (agent).Spec evolution log added to feature and migration spec templates with the three failure trigger values. Docs site gains a new concept page (AI Capability Specs), two new sections in Spec Amendment, and five glossary entries.
ADR 0014 records the decision, options considered, and the AoI constructs deliberately not adopted (custom frontmatter scalars, Reversibility tier, Pattern A/B/C/D/E taxonomy, seven-category failure taxonomy, standalone authoring handbook, signal metrics, phase rename). AoI attribution added to ACKNOWLEDGMENTS under Articles and Blog Posts.
CHANGELOG entry filed under [Unreleased]; manifest versions unchanged (release bump deferred to release commit).